package com.bristua.mall.common.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.biz.QueryAppIndexImgBiz;
import com.bristua.mall.common.utils.HandleResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/29.
 */
@RestController
@Api(value="查询首页轮播图片",tags={"查询首页轮播图片"})
public class QueryAppIndexImgController {
    @Autowired
    private QueryAppIndexImgBiz queryAppIndexImgBiz;
    @PostMapping("/get/app/index/image")
    @ApiOperation(value="查询首页轮播图片")
    public Result queryAppIndexImg(){
        return HandleResultUtil.querySuccessResult(queryAppIndexImgBiz.queryAppIndexImg());
    }
}
